package com.by.orders.mapper;

import com.by.orders.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderItemMapper {
    /**
     * 保存订单项
     * @param orderId 订单id
     * @param orderItems 要保存的订单项
     * @return
     */
    int saveOrderItem(@Param("orderId") int orderId,@Param("orderItems") List<OrderItem> orderItems);
}
